﻿@if (TempData["DbType"] != null)
{
    <br />
    <div class="k-block k-success-colored" style="font-style: italic;">
        <span class="k-icon k-i-tick"></span>

        @switch ((DbType)TempData["DbType"])
        {
            case DbType.CreatedPublic:
                <span>Creation successful.  This record can be viewed by all users.</span>
                break;    
                
            case DbType.CreatedPrivate:
                <span>Creation successful.  This record can only be viewed by you.</span>
                break;    
            
            case DbType.CreatedUnapproved:
                <span>Changes have been submitted pending approval.</span>
                break;    
            
            case DbType.EditedPublic:
                <span>Changes saved.  This record can be viewed by all users.</span>
                break;    
            
            case DbType.EditedPrivate:
                <span>Changes saved.  This record can only be viewed by you.</span>
                break;    
            
            case DbType.EditedUnapproved:
                <span>Changes have been submitted pending approval.</span>
                break;    
            
             case DbType.MarkedForDeletion:
                <span>Record marked for deletion.</span>
                break;    
        }
    </div>
    <br />
}   
